<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //变量赋值练习
    //     var myname = '旗木卡卡西';
    //     var address = '火影村';
    //     var age = 30;
    //     var email = 'kakaxi@163.com';
    //     var money = 2000;
    //     console.log(myname);
    //     console.log(address);
    //     console.log(age);
    //     console.log(email);
    //     console.log(money);
    //     //弹出框案例
    //   var myname= prompt('请输入你的名字')
    //   alert(myname)
      //让ab交换案例
//      var t;
//      var i=1;
//      var j=2;
//      t=i
//      i=j;
//      j=t;
// console.log(i);
// console.log(j);
console.log(Number(true));//1
console.log(Number(false));//0
console.log(Number(null));//0
console.log(Number(undefined));//NaN
console.log(Number("abc"));//NaN
console.log(Number(""));//0
console.log(Number("123abc"));//NaN
var str=false
console.log(str-1);
    </script>
</body>

</html>